﻿@using Backend.JYD.Model;
@{
    var loginEmpInfo = ViewBag.LoginEmpInfo as EmpInfo;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/skin/css/sub.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/skin/css/main.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/skin/js/jquery-1.7.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/skin/js/main.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/skin/js/common.js")" type="text/javascript"></script>
</head>
<body>
    <div class="header">
	    <div class="logo"></div>
        <div class="menu-right"></div>
	    <div class="nav">
            <div class="login">
                @{
                    var login = ViewBag.LoginEmpInfo as EmpInfo;
                    if(login != null)
                    {
                        <div><a href="/home/loginout">退出</a></div>
                        var role = ViewBag.MainRoleInfo as RoleInfo;
                                if (role != null)
                                {
                        <div> 用户角色：@role.RoleName</div>
                                }
                        <div> 当前登录用户：@login.EmpName</div>
                    }
                }
            </div>
    	    <ul class="nav-ul">
        	    <li><a href="/task/index">首页</a></li>
                <li><a href="/intent/index">意向客户</a></li>
                <li><a href="/task/index?code=handout">信息分派</a></li>
                <li><a href="/marketing/index">客户营销</a></li>
                <li><a href="javascript:void(0)">签约客户</a></li>
            </ul>            
        </div>
    </div>
<div class="wrap">
    <div class="frame-sidebar">
        @{
            Html.RenderPartial("_Menu");
        }
    </div>
    <div class="frame-main">
        <div class="frame-cnt">
            @using (Html.BeginForm())
            {
            @RenderBody()
            }
        </div>
    </div>
</div>

</body>
</html>

